// 常量定义
export const USER_STATUS = {
  DISABLED: 0,
  ACTIVE: 1,
}

export const ACCOUNT_TYPE = {
  ADMIN: 1,
  USER: 2,
}

export const USER_STATUS_TEXT = {
  [USER_STATUS.DISABLED]: "禁用",
  [USER_STATUS.ACTIVE]: "正常",
}

export const ACCOUNT_TYPE_TEXT = {
  [ACCOUNT_TYPE.ADMIN]: "管理员",
  [ACCOUNT_TYPE.USER]: "普通用户",
}

export const USER_STATUS_TAG_TYPE = {
  [USER_STATUS.DISABLED]: "danger",
  [USER_STATUS.ACTIVE]: "success",
}

export const ACCOUNT_TYPE_TAG_TYPE = {
  [ACCOUNT_TYPE.ADMIN]: "danger",
  [ACCOUNT_TYPE.USER]: "primary",
}

export const OPERATION_TYPE = {
    CREATE: "CREATE",
    UPDATE: "UPDATE",
    DELETE: "DELETE",
    LOGIN: "LOGIN",
    LOGOUT: "LOGOUT",
    QUERY: "QUERY",
}

export const OPERATION_TYPE_TEXT = {
    [OPERATION_TYPE.CREATE]: "新增",
    [OPERATION_TYPE.UPDATE]: "修改",
    [OPERATION_TYPE.DELETE]: "删除",
    [OPERATION_TYPE.LOGIN]: "登录",
    [OPERATION_TYPE.LOGOUT]: "登出",
    [OPERATION_TYPE.QUERY]: "查询",
}

export const OPERATION_TYPE_TAG_TYPE = {
    [OPERATION_TYPE.CREATE]: "success",
    [OPERATION_TYPE.UPDATE]: "warning",
    [OPERATION_TYPE.DELETE]: "danger",
    [OPERATION_TYPE.LOGIN]: "primary",
    [OPERATION_TYPE.LOGOUT]: "info",
    [OPERATION_TYPE.QUERY]: "",
}
